﻿using System;
using System.Collections.Generic;
using Webshop20.Domain.Common;

namespace Webshop20.Domain.Shared.Products.Core
{
    [Serializable]
    public class Category : Entity
    {
        public Category(Category baseCategory,
                        IList<Category> subCategories,
                        string name,
                        string description, 
                        IList<Product> products)
        {
            BaseCategory = baseCategory;
            SubCategories = subCategories;
            Name = name;
            Description = description;
            Products = products;
        }

        public Category()
        {}

        public virtual IList<Product> Products { get; set; }
        public virtual Category BaseCategory { get; set; }
        private IList<Category> SubCategories { get; set; }
        public virtual string Name { get; set; }
        public virtual string Description { get; set; }
    }
}